﻿using System;
using System.Dynamic;

namespace _138_通过ExpandoObject类创建动态实例_动态类型
{
        class Program
        {
            static void Main(string[] args)
            {
                dynamic dx = new ExpandoObject();

                dx.Message = "Hello";
                dx.Time = new DateTime(2009, 2, 1, 23, 54, 16);

                Console.WriteLine($"Message={dx.Message}\nTime={dx.Time}");
            }
        }
    }
